import request from '@/utils/request'

// 查询未签收  列表
export function listApproved(data) {
  return request({
    url: '/shopReturnApproved/signPage',
    method: 'post',
    data: data
  })
}

// 签收
export function sign(id) {
  return request({
    url: `/shopReturnApproved/sign/${id}`,
    method: 'get'
  })
}

// 拒绝签收
export function rejectSign(data) {
  return request({
    url: '/car/approved',
    method: 'post',
    data: data
  })
}

// 退款
export function refundAudit(data) {
  return request({
    url: '/shopReturnApproved/approved',
    method: 'post',
    data: data
  })
}
// 查询 未处理列表
export function toHandleList(data) {
  return request({
    url: '/shopReturnApproved/dohandlePage',
    method: 'post',
    data: data
  })
}
// 查询 已处理列表
export function handleList(data) {
  return request({
    url: '/shopReturnApproved/handlePage',
    method: 'post',
    data: data
  })
}

// -------------------

//退货列表
export function shopReturnApproved(data) {
  return request({
    url: '/shopReturnApproved/search',
    method: 'post',
    data: data
  })
}
// 同意
export function auditPass(data) {
  return request({
    url: '/shopReturnApproved/auditPass',
    method: 'post',
    data: data
  })
}
// 拒绝
export function auditNoPass(data) {
  return request({
    url: '/shopReturnApproved/auditNoPass',
    method: 'post',
    data: data
  })
}

